#include <stdio.h>
#include <stdlib.h>

/*
 *当成宏
 * */
enum day
{

	MON = 1,
	TUS,//2
	THR,//3
	WES,//4
	FRI = 1,
	SAT,//2
	SUN //3

};


/*
 *老师用法:当成宏 但预处理gcc -E 不进行替换
 * */
enum
{
	STATE_RUNNING = 1,
	STATE_CANCELED,
	STATE_OVER	

};
struct jod_st
{
	int id;
	int state;
	time_t start,end;

};




int main(void)
{
#if 0 
	enum day a = FRI;
	a = SUN;
	printf("%d\n",a);
#endif
	struct jod_st jod1;
	
/* 伪码: 获取任务状态*/


	switch(jod1.state)
	{
		case STATE_RUNNING:
			/* 伪码：任务*/
			break;
		case STATE_CANCELED:

			break;
		case STATE_OVER:
		
			break;
		default:
			exit(1);
	}	

	exit(0);
}
